package demo.feign;

import java.util.HashMap;
import java.util.Map;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 不声明feign注解，测试手动建feign
 */
//@FeignClient(url = "http://localhost:8021/order", name = "order",fallback = OrderFallBack.class)
public interface OrderService {


    @GetMapping("/deduct")
    boolean deduct(@RequestParam("sum") Integer sum);

}
